Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aria-query

Package Overview
Dependencies
Maintainers
5
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aria-query

Programmatic access to the ARIA specification

  • 5.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31M
decreased by-6.22%
Maintainers
5
Weekly downloads
 
Created

What is aria-query?

The aria-query npm package is a library that provides a set of utilities for querying and interacting with ARIA (Accessible Rich Internet Applications) roles, states, and properties. It is designed to help developers create more accessible web applications by providing an easy way to access and manipulate ARIA attributes.

What are aria-query's main functionalities?

Querying ARIA roles

This feature allows developers to query information about ARIA roles. The code sample demonstrates how to import the 'roles' map from the package and retrieve information about the 'button' role.

import { roles } from 'aria-query';
console.log(roles.get('button'));

Querying ARIA states and properties

This feature enables querying ARIA states and properties. The code sample shows how to import the 'aria' map and get details about the 'aria-hidden' property.

import { aria } from 'aria-query';
console.log(aria.get('aria-hidden'));

Mapping HTML elements to ARIA roles

This feature provides a mapping between HTML elements and their corresponding ARIA roles. The code sample illustrates how to get the ARIA roles associated with the 'button' HTML element.

import { elementRoles } from 'aria-query';
const map = elementRoles.get('button');
console.log(map);

Other packages similar to aria-query

Keywords

FAQs

Package last updated on 20 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc